{% extends 'base.html' %}
{% block title %}
  用户登录
{% endblock %}
{% block styles %}
{{ super() }}
    <style>
        #container{
            padding-top: 20px;
            width: 1000px;
            height: 600px;
            margin: 0 auto;
        }

    </style>
{% endblock %}

{% block newcontent %}
    <div id="container">
    <h1>用户登录</h1>
    <form class="form-horizontal" method="post" action="{{ url_for('user.login') }}">
        <p style="color: red">{{ msg }}</p>
  <div class="form-group">
    <label for="inputUsername" class="col-md-2 control-label">用户名</label>
    <div class="col-sm-6">
      <input type="text" class="form-control" id="inputUsername" name="username" placeholder="username">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword" class="col-md-2 control-label">密码</label>
    <div class="col-sm-6">
      <input type="password" class="form-control" id="inputPassword" name="password" placeholder="Password">
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-3 col-md-10">
      <button type="submit" class="btn btn-primary col-md-3">登&nbsp;&nbsp;&nbsp;&nbsp;录</button>
    </div>
  </div>
</form>
    </div>
{% endblock %}